@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scrollbar-width: thin;
  scrollbar-color: #99a9bf #d3dce6; // 滚动轨道颜色  滚动滑块颜色
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

p {
  margin: 0;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: border-box;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  box-sizing: border-box;
  padding: 20px;
  height: calc(100vh - 84px);
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

.info {
  color: #999;
}

// el-input[type=number] 隐藏上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}

.clearfix:after {
  clear: both;
}

.pointer {
  cursor: pointer;
}

.custom-table {
  width: 100%;
  overflow: auto;
  border-top: 1px solid #ebeef5;
  border-left: 1px solid #ebeef5;
  text-align: center;

  th {
    min-width: 80px;
    padding: 12px 10px;
    border-right: 1px solid #ebeef5;
    border-bottom: 1px solid #ebeef5;
    background-color: #f5f7fa;
    color: #909399;
    font-size: 14px;
  }

  td {
    min-width: 80px;
    padding: 12px 10px;
    border-right: 1px solid #ebeef5;
    border-bottom: 1px solid #ebeef5;
    color: #606266;
    font-size: 14px;

    &.custom-has-inner-table {
      padding: 0;
      vertical-align: top;
    }
  }

  .custom-inner-table {
    padding: 0;
    width: 100%;

    td {
      border-right: 0;
    }
  }
}

.custom-table-mini {
  width: 100%;
  overflow: auto;
  border-top: 1px solid #ebeef5;
  border-left: 1px solid #ebeef5;
  text-align: center;

  th {
    min-width: 50px;
    padding: 3px;
    border-right: 1px solid #ebeef5;
    border-bottom: 1px solid #ebeef5;
    background-color: #f5f7fa;
    color: #909399;
    font-size: 10px;
  }

  td {
    min-width: 50px;
    padding: 3px;
    border-right: 1px solid #ebeef5;
    border-bottom: 1px solid #ebeef5;
    color: #606266;
    font-size: 10px;

    &.custom-has-inner-table {
      padding: 0;
      vertical-align: top;
    }
  }

  .custom-inner-table {
    padding: 0;
    width: 100%;

    td {
      border-right: 0;
    }
  }
}

// 表格展开样式
.el-table__expanded-cell[class*="cell"] {
  padding: 10px !important;

  .el-table,
  .el-table th,
  .el-table__row {
    border-color: #e4e7ed !important;
    background-color: #f2f6fc !important;
  }
}

// 纸张效果
.paper {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.27), 0 0 20px rgba(0, 0, 0, 0.1) inset;
}

.paper::after,
.paper::before {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 100px;
  height: 1px;
  z-index: -1;
  box-shadow: 0 2px 12px 5px rgba(0, 0, 0, 0.3);
}

.paper::after {
  left: 4px;
  transform: rotate(-6deg);
}

.paper::before {
  right: 4px;
  transform: rotate(6deg);
}

.mini-input {
  input {
    padding: 0 3px !important;
  }

  .el-input__inner {
    font-size: 12px;
    height: 20px !important;
    line-height: 20px !important;
  }

  .el-textarea__inner {
    padding: 0 3px !important;
    height: 100%;
  }
}

.mini-center-input {
  input {
    padding: 0 3px !important;
    text-align: center;
  }

  .el-input__inner {
    font-size: 12px;
    height: 20px !important;
    line-height: 20px !important;
  }

  .el-textarea__inner {
    padding: 0 3px !important;
    text-align: center;
    height: 100%;
  }
}

.d-table.el-table {
  thead {
    tr,
    th {
      background: #f6f6f6;
    }
  }

  tbody {
    td {
    }
  }
}

.fade-enter {
  /*过度进入时初始状态*/
  opacity: 0;
  transform: translate3d(0, 20%, 0);
}

.fade-enter-to,
.fade-leave {
  /*进入过度结束状态 & 过度结束离开初始状态*/
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.fade-leave-to {
  /*过度结束状态*/
  opacity: 0;
  transform: translate3d(0, 20%, 0);
}

.fade-enter-active,
.fade-leave-active {
  /*过度动效*/
  transition: all 0.3s ease;
}

.c {
  &-btn {
    &-primary {
      background: linear-gradient(180deg, #73b4ff 0%, #3f7dff 100%);

      &:hover {
        box-shadow: 0 0 4px #eee;
        background: linear-gradient(
          180deg,
          rgba(115, 180, 255, 0.8) 0%,
          rgba(63, 125, 255, 0.8) 100%
        );
      }
    }
  }
}

.el-table {
  background: transparent;
}

.el-table th,
.el-table tr {
  background-color: transparent;
}

.el-table {
  color: #333;
}

.d-table.el-table thead tr,
.d-table.el-table thead th {
  background: #5d667c;
  color: #fff;
}

.el-table--border::after,
.el-table--group::after,
.el-table::before,
.el-table__fixed-right::before,
.el-table__fixed::before {
  display: none;
}

.el-table td,
.el-table th.is-leaf {
  border-bottom: none;
}

// .el-table__body tr.current-row>td,
.el-table__body tr.hover-row.current-row > td,
.el-table__body tr.hover-row.el-table__row--striped.current-row > td,
.el-table__body tr.hover-row.el-table__row--striped > td,
.el-table__body tr.hover-row > td {
  background-color: rgba(255, 255, 255, 0.1);
}

.el-table--border,
.el-table--group {
  border: none;
}

.el-table--border td,
.el-table--border th,
.el-table__body-wrapper .el-table--border.is-scrolling-left ~ .el-table__fixed {
  border: none;
}
.el-table--scrollable-x .el-table__body-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #99a9bf #d3dce6;
}

.el-table thead tr {
  background: #5d667c;
}

.el-table tbody tr:nth-child(2n) {
  background: #2f3b57;
  color: #fff;
}

.el-table tbody tr:nth-child(2n) td .cell {
  color: #fff;
}

.el-table thead {
  color: #fff;
}

.el-input__inner {
  background: #5d667c;
  color: #fff;
  border: none;
}
.light {
  .el-input__inner {
    background: #fff;
    color: #333;
    border: 1px solid #dcdfe6;
  }
  .el-form-item__label {
    color: #333;
  }
}
::-webkit-scrollbar-track-piece {
  background: #d3dce6;
  border-radius: 20px;
}

::-webkit-scrollbar {
  width: 6px;
  height: 7px;
}

::-webkit-scrollbar-thumb {
  background: #99a9bf;
  border-radius: 20px;
}

// & {
//   scrollbar-width: thin;
//   scrollbar-color: #d3dce6 #99a9bf ; // 滚动轨道颜色  滚动滑块颜色
// }

#tags-view-container {
  .el-scrollbar__wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
}

.el-table__body tr.current-row > td {
  background-color: rgba(255, 255, 255, 0.2);
}

.el-form-item__label {
  color: #fff;
}

.el-table thead th {
  .cell {
    border-left: 1px solid #fff;
  }

  &:first-child {
    .cell {
      border-left: none;
    }
  }
}

.el-pagination__total,
.el-pagination__jump {
  color: #fff;
}

.el-button--primary {
  border: none;
  background-color: #444c69;
}

.el-button--primary:focus,
.el-button--primary:hover {
    background-color: #222634;
    border-color: #12141c;
}

.btn-border {
  width: 100px;
  height: 24px;
  border-radius: 2px;
  border: 1px solid;
  border-image: linear-gradient(
      180deg,
      rgba(63, 125, 255, 0.25),
      rgba(107, 154, 254, 0),
      rgba(63, 125, 255, 0.39)
    )
    1 1;
  background: transparent;
  color: #fff;
  font-size: 12px;
  cursor: pointer;

  &:hover {
    background: rgba(63, 125, 255, 0.25);
  }
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
  background: inherit;
}

.el-table--striped .el-table__body tr.el-table__row--striped.current-row td {
  background: inherit;
}

.el-table--enable-row-hover .el-table__body tr:hover > td .cell {
  color: #333;
}
img {
  // max-width: 100%;
}
